﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["username"] == null)
        {
            Response.Redirect("Login.aspx");
        }
        else {
            txtProfile.Text = "<a href='EditProfile.aspx?id=" + Session["username"] + "'>My Profile</a>";
            lbwellcome.Text = "Hi <span style='text-transform:uppercase;font-weight:bold;'>" + Session["fullname"] + "</span>";
        }
    }
}
